package com.easylinkin.linkappapi.jglplant.entity;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 鸡公岭-专家库(JglExpert)表实体类
 *
 * @author makejava
 * @since 2022-02-22 10:34:33
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("jgl_expert")
public class JglExpert extends Model<JglExpert> {
    //主键ID
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    //名称
    private String name;
    //0-女，1-男
    private Integer gender;
    //单位
    private String company;
    //职称
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String job;
    //头像地址
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String avatar;
    //研究植物
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String studyPlant;
    //备注
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String remark;
    //租户id
    private String tenantId;
    //创建时间
    private Date createTime;
    //修改时间
    private Date modifyTime;
    //创建人id
    private String creator;
    //修改人id
    private String modifier;

    @TableField(exist = false)
    private String type1;
    /**
     * 科
     */
    @TableField(exist = false)
    private String type2;
    /**
     * 属
     */
    @TableField(exist = false)
    private String type3;
    /**
     * 种
     */
    @TableField(exist = false)
    private String type4;

    /**
     * 对应的植物
     */
    @TableField(exist = false)
    private List<JglPlant> jglPlantList;
    /**
     * 对应的研究领域
     */
    @TableField(exist = false)
    private List<JglExpertResearchArea> jglExpertResearchAreaList;


    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}

